#pragma once
#include <QDebug>
#include <QToolTip>
#include <QLineEdit>
#include <QCursor>
#include <QTimer>
#include <QPainter>
#include <QApplication>
#include <QRegularExpression>
#include <QRegularExpressionValidator>

class RegisterLineEdit : public QLineEdit
{
    Q_OBJECT
public:
    RegisterLineEdit(QWidget* parent)
        :QLineEdit(parent)
    {

    }
    ~RegisterLineEdit(){}

    void focusInEvent(QFocusEvent * event) override
    {
        QLineEdit::focusInEvent(event);
        QPoint pos = this->mapToGlobal(QPoint(0, -30));
        QToolTip::showText(pos, this->toolTip(), this);
    }





private:
};


